<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head>
<title><?php echo $current_title;?>---<?php echo $siteSetings["site_name"]?></title>
<base href="<?php echo base_url().'templates/'; ?>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta content="<?php echo $siteSetings["site_keyword"]?>" name="keywords" />
<meta content="<?php echo $siteSetings["site_description"]?>" name="description" />
<link rel="shortcut icon" href="favicon.ico" />
<script src="js/jquery.js" type="text/javascript"></script>
<script src="js/etrip.js" type="text/javascript"></script>
<link rel="stylesheet" href="css/style.css" type="text/css" />
<link rel="stylesheet" href="css/slide.css" type="text/css" />
<script language="javascript" type="text/javascript" src="My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript">
 var site_url='<?php echo site_url();?>';
 <?php if(!empty($model)){?>
 var model='<?php echo $model;?>';
 <?php }else{?>
 var model=0;
 <?php }?>
 
 <?php if(!empty($id)){?>
 var artId='<?php echo $id;?>';
 <?php }else{?>
 var artId=0;
 <?php }?>
 var addnum=0;
 $(function(){
     $("#btnlSearch").click(function(){
     //    location.href="/searchLines.aspx?LStartDate="+$("#txtLeaveStartDate").val()+"&LEndDate="+$("#txtLeaveEndDate").val()+"&LName="+escape( $("#txtKeyName").val());
         location.href="<?php echo site_url("/main/lineSearch");?>/"+$("#txtLeaveStartDate").val()+"/"+$("#txtLeaveEndDate").val()+"/"+encodeURI( $("#txtKeyName").val());
     });
 });
</script>

<script src="js/site.js" type="text/javascript"></script>
<script type="text/javascript">
    $(function(){
        //城市选择更新区域开始
        $("#dllCity").change(function() {
            if ($(this).val() > 0) {
                $.ajax({
                    type: "GET",
                    url: "/getData/ProcessData.aspx",
                    data: "op=cityArea&cityID=" + $(this).val(),
                    dataType: 'html',
                    async: false,
                    cache: false,
                    beforeSend: function() { $("#msgLoad").text("加载中……"); },
                    success: function(msg) {
                        if (msg != "fail") {
                            $("#msgLoad").text("");
                            $("#ddlhArea").html(msg);
                        } else {
                            $("#msgLoad").val("获得数据出错");
                        }

                    },
                    error: function() { $("#msgLoad").text("加载出错！"); }
                });
            }
        });
        //城市选择更新区域结束
        
        //城市搜索按钮操作开始
       // $("#btnSearch").click(function(){
        //   location.href="<?php echo site_url("/hotel/hotel_list/");?>cityID="+$("#dllCity").val()+"&areaID="+$("#ddlhArea").val()+"&rmb="+$("#dllRMB").val()+"&star="+$("#ddlStar").val()+"&hName="+escape( $("#txthName").val());
        //   location.href="<?php echo site_url("/hotel/hotel_list/");?>/"+$("#dllCity").val()+"/"+$("#ddlhArea").val()+"/"+$("#dllRMB").val()+"/"+$("#ddlStar").val()+"/"+escape( $("#txthName").val());
       //    location.href="<?php echo site_url("/hotel/hotel_list/");?>/"+$("#dllCity").val()+"/"+$("#dllRMB").val()+"/"+escape( $("#txthName").val());
       // });
        
        //城市搜索按钮操作结束
    })
    var o_o = null;
    function ShowDisp(DisID) {
        if (o_o != null)
            o_o.style.display = "none";
        var o = document.getElementById(DisID);
        if (o_o != o) {
            o.style.display = "block";
            o_o = o;
        }
        else
            o_o = null;
    }
    
    window.onload = function() {
        var strUrl = location.href;
        var strSelect = "";
        if (strUrl.indexOf("areaID") > -1) {
            var reg = /(?!areaID=)\d+(?=&rmb)/i;
            var arr = reg.exec(strUrl);
            strSelect = "&areaID="+arr;
        }
        var v = $("#dllCity").val();
        if (v > 0) {
            $.ajax({
                type: "GET",
                url: "/getData/ProcessData.aspx",
                data: "op=cityArea&cityID=" + v + strSelect,
                dataType: 'html',
                async: false,
                cache: false,
                beforeSend: function() { $("#msgLoad").text("加载中……"); },
                success: function(msg) {
                    if (msg != "fail") {
                        $("#msgLoad").text("");
                        $("#ddlhArea").html(msg);
                    } else {
                        $("#msgLoad").val("获得数据出错");
                    }

                },
                error: function() { $("#msgLoad").text("加载出错！"); }
            });
        }
    }
</script>
<script src="js/Jshow.js" type="text/javascript"></script>

</head>
<body>
<script type="text/javascript">
function addbookmark()
{ 
    var nome_sito = document.title;
    var url_sito = document.location.href;
    if ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4))
        window.external.AddFavorite(url_sito, nome_sito);
    else if (navigator.appName == "Netscape")
        window.sidebar.addPanel(nome_sito, url_sito, '');
    else
        alert("Sorry!Cann't Add this site to your favorite!.");
}
function SetHome(obj,vrl){
        try{
                obj.style.behavior='url(#default#homepage)';obj.setHomePage(vrl);
        }
        catch(e){
                if(window.netscape) {
                        try {
                                netscape.security.PrivilegeManager.enablePrivilege("UniversalXPConnect");
                        }
                        catch (e) {
                                alert("此操作被浏览器拒绝！\n请在浏览器地址栏输入“about:config”并回车\n然后将 [signed.applets.codebase_principal_support]的值设置为'true',双击即可。");
                        }
                        var prefs = Components.classes['@mozilla.org/preferences-service;1'].getService(Components.interfaces.nsIPrefBranch);
                        prefs.setCharPref('browser.startup.homepage',vrl);
                 }
        }
}

function oneDate(){

    var v=$("#txtoInDate").val();

    if(v!=""){

        $.ajax({

            type: "GET",

            url: "/getData/ProcessData.aspx",

            data: 'op=getOneDate&oDate='+ v +'&rid=40',

            dataType: 'html',

            async: false,

            cache: false,

            beforeSend: function() { $("#showPrice").text("加载中……"); },

            success: function(msg) {

                if (msg != "fail") {

                    $("#showPrice").html(msg);

                } else {

                    $("#showPrice").html("获得数据出错");

                }

            },

            error: function() { $("#showPrice").html("加载出错！"); }

        });

    }

}

function twoDate(){

    var v1=$("#txtoInDate").val();

    var v2=$("#txtoOutDate").val();

    if(v1!=""&&v2!=""){

        $.ajax({

            type: "GET",

            url: "/getData/ProcessData.aspx",

            data: 'op=getTwoDate&oDateStart='+ v1 +'&oDateEnd='+ v2 +'&rid=40',

            dataType: 'html',

            async: false,

            cache: false,

            beforeSend: function() { $("#showPrice").text("加载中……"); },

            success: function(msg) {

                if (msg != "fail") {

                    $("#showPrice").html(msg);

                } else {

                    $("#showPrice").html("获得数据出错");

                }

            },

            error: function() { $("#showPrice").html("加载出错！"); }

        });

    }

}

</script>
<div id="headtop"><div class="headtopbg"></div><a onclick="openWin('会员登录','/login.aspx?Tip=win',800,300,1);">登录</a> <a href="/reg.aspx">免费注册</a>
<p><a onClick="addbookmark()" class="fst">加入收藏</a><a onclick="SetHome(this,window.location)" style="CURSOR: hand">设为首页</a><a href="guestbook.aspx">在线答疑</a><a href="/index.aspx">返回首页</a></p>
</div>
<div id="header">
<div class="logo"><p>
	<img src="img/logo.png" /></p></div>
<div class="headR png"><em>400-600-2788</em></div>
</div>
<div id="navbar">
<div class="m">
<a href="<?php echo site_url();?>" class="first">网站首页</a><span></span>
<?php 
		//循环新闻分类
		$j=1;
		foreach($newsclass['parentid'][0] as $key=>$value){	//筛选数组parentid为0的结果
?>	
			
	<a href="<?php echo site_url();?>/news_cate/cate/<?php echo $key?>" class="navp<?php echo $j;?> png" id="news_<?php echo $key;?>"><?php echo $value?></a>		
			
<?php 		
			$j++;
		}//外部循环
?>	
<?php 
	//循环门票分类
		$j=1;
		foreach($TicketClass['parentid'][0] as $key=>$value){	//筛选数组parentid为0的结果
?>	
			
	<a href="<?php echo site_url();?>/ticket" id="car_<?php echo $key;?>"><?php echo $TicketClass['parentid'][0][$key]?></a><span></span>				
			
<?php 		
			$j++;
		}//外部循环
?>	
	<a href="<?php echo site_url();?>/hotel" id="hotel_1">酒店预订</a><span></span>	
<?php  //循环线路分类
		$j=1;
		foreach($lineclass['parentid'][0] as $key=>$value){	//筛选数组parentid为0的结果
?>	
			
	<a href="<?php echo site_url();?>/main/category_list/<?php echo $key?>" id="line_<?php echo $key;?>"><?php echo $lineclass['parentid'][0][$key]?></a><span></span>		
			
<?php 	$j++;}//外部循环 ?>
<?php  //循环线路分类
		$j=1;
		//print_r($tagsclass);
		foreach($tagsclass['parentid'][0] as $key=>$value){	//筛选数组parentid为0的结果
?>	
			
	<a href="<?php echo site_url();?>/strategy/index/<?php echo $key?>" id="line_<?php echo $key;?>"><?php echo $tagsclass['parentid'][0][$key]?></a><span></span>		
			
<?php 	$j++;}//外部循环 ?>

		
	
<!-- <a href="/view.aspx">旅游景点</a><span></span>
<a href="/news.aspx">旅游资讯</a><span></span>
<a href="/hotel.aspx">酒店预订</a><span></span>
<a href="/ticket.aspx">票务预订</a><span></span>
<a href="/visa.aspx">签证服务</a>
<a href="/triplist.aspx?typeID=1" class="navp1 png">周边游</a>
<a href="/triplist.aspx?typeID=2" class="navp3 png">国内游</a>
<a href="/triplist.aspx?typeID=3" class="navp2 png">出境游</a>
<a href="/tripTopicindex.aspx" class="navp4 png">主题游</a> -->
</div><p></p>
</div>
<!--头部结束-->
